#include "Person.hpp"

/**
 * @brief 读取输入
 * 
 * @param is 
 * @param p 
 * @return std::istream& 
 */
std::istream &readPerson(std::istream &is, Person &p)
{
    is >> p.strName >> p.strAddress;
    return is;
}
/**
 * @brief 打印对象数据成员
 * 
 * @param os 
 * @param p 
 * @return std::ostream& 
 */
std::ostream &printPerson(std::ostream &os, const Person &p)
{
    os << p.getName() << p.getdAddress();
    return os;
}